package com.guguju.ssms.bean;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by dell on 2022-5-15.
 * {
 "data": {
 "userInfo": {
 "userId": 1,
 "logonName": "zhitian",
 "showName": "添",
 "email": "xx@163.com",
 "mobile": "18611089444",
 "headPic": "",
 "sex": 1,
 "positionType": 1,
 "regTypeName": "塔吊司机",
 "lastestLogonTime": "2022-05-15T08:11:13"
 }
 },
 "code": 200,
 "msg": "操作成功!"
 }

 */
public class UserInfo  implements Parcelable {

    private int userId;
    private String logonName;
    private String showName;
    private String email;
    private String mobile;
    private String headPic;
    private int sex;
    private  int positionType;
    private String regTypeName;
    private String lastestLogonTime;



    protected UserInfo(Parcel in) {
        userId = in.readInt();
        logonName = in.readString();
        showName = in.readString();
        email = in.readString();
        mobile = in.readString();
        headPic = in.readString();
        sex = in.readInt();
        positionType = in.readInt();
        regTypeName = in.readString();
        lastestLogonTime = in.readString();
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeInt(userId);
        dest.writeString(logonName);
        dest.writeString(showName);
        dest.writeString(email);
        dest.writeString(mobile);
        dest.writeString(headPic);
        dest.writeInt(sex);
        dest.writeInt(positionType);
        dest.writeString(regTypeName);
        dest.writeString(lastestLogonTime);
    }

    @Override
    public int describeContents() {
        return 0;
    }

    public static final Creator<UserInfo> CREATOR = new Creator<UserInfo>() {
        @Override
        public UserInfo createFromParcel(Parcel in) {
            return new UserInfo(in);
        }

        @Override
        public UserInfo[] newArray(int size) {
            return new UserInfo[size];
        }
    };


    public int getUserId() {
        return userId;
    }

    public void setUserId(int userId) {
        this.userId = userId;
    }


    public String getLogonName() {
        return logonName;
    }

    public void setLogonName(String logonName) {
        this.logonName = logonName;
    }

    public String getShowName() {
        return showName;
    }

    public void setShowName(String showName) {
        this.showName = showName;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }



    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public String getHeadPic() {
        return headPic;
    }

    public void setHeadPic(String headPic) {
        this.headPic = headPic;
    }

    public int getSex() {
        return sex;
    }

    public void setSex(int sex) {
        this.sex = sex;
    }

    public int getPositionType() {
        return positionType;
    }

    public void setPositionType(int positionType) {
        this.positionType = positionType;
    }

    public String getRegTypeName() {
        return regTypeName;
    }

    public void setRegTypeName(String regTypeName) {
        this.regTypeName = regTypeName;
    }

    public String getLastestLogonTime() {
        return lastestLogonTime;
    }

    public void setLastestLogonTime(String lastestLogonTime) {
        this.lastestLogonTime = lastestLogonTime;
    }
}
